#include <iostream>
using namespace std;
#include "rect.h"
#include <ezwin.h>
#include <cassert>
#include <cmath>
SimpleWindow HelloWindow("My First Window", 30.0, 22.0, Position(0.0,0.0));//window size 30*22
int ApiMain() {
	float x,y,y1;
	HelloWindow.Open();
	assert(HelloWindow.GetStatus() == WindowOpen);
	
	Position Center = HelloWindow.GetCenter();
	HelloWindow.RenderRectangle(Position(0.0,0.0), Position(30.0,22.0),
                        Magenta,false);
	HelloWindow.RenderLine(Position(15.0,0.0), Position(15.0,22.0),
                        Black,0.05);
    	HelloWindow.RenderLine(Position(0.0,11.0), Position(30.0,11.0),
                        Black,0.05);

	for(x=-5;x<5;x=x+0.001){ 
			
		 y=sin(x);
			y1=cos(x);
		
		HelloWindow.RenderLine(Position(15.0,11.0) + Position(3*x,-9*y),Position(15.0,11.0) + Position(3*x,-9*y),
                        Red, 0.03);
		HelloWindow.RenderLine(Position(15.0,11.0) + Position(3*x,-9*y1),Position(15.0,11.0) + Position(3*x,-9*y1),
                        Blue, 0.03);
	}	
	}

